import { translateTitle } from '@/utils/i18n'
const MenuButton = {
  MenuButton: {
    search: {
      form: {
        method: 'dams.menuButton.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'BUTTON_NAME',
            label: translateTitle('Dams.DamsSystemManagement.按钮名称'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'MENU_NAME',
            label: translateTitle('Dams.DamsSystemManagement.按钮绑定菜单名称'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'selectRemote',
            name: 'BUTTON_NAME',
            label: translateTitle('Dams.DamsSystemManagement.按钮名称'),
            labelHidden: false,
            isRules: true,
            filterable: true,
            options: [],
          },
          {
            type: 'select',
            name: 'MENU_CODE',
            label: translateTitle('Dams.DamsSystemManagement.按钮绑定菜单'),
            labelHidden: false,
            options: [],
            filterable: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'MENU_NAME',
            label: translateTitle('Dams.DamsSystemManagement.按钮绑定菜单名称'),
            labelHidden: false,
            hidden: true,
          },
          {
            type: 'select',
            name: 'SHOW_POSTION',
            label: translateTitle('Dams.DamsSystemManagement.按钮显示位置'),
            options: [
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.表格上面'),
                CODE: 'tableTop',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.表格操作'),
                CODE: 'tableOperation',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.树形操作'),
                CODE: 'treeOperation',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.其他'),
                CODE: 'other',
              },
            ],
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'select',
            name: 'FUNCTION_URI',
            label: translateTitle('Dams.DamsSystemManagement.按钮方法url'),
            options: [
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.新增'),
                CODE: 'newAdd',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.编辑'),
                CODE: 'editor',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.删除'),
                CODE: 'delete',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.刷新'),
                CODE: 'refresh',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.是否启用'),
                CODE: 'startUsing',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.重置密码'),
                CODE: 'pswReset',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.修改密码'),
                CODE: 'uploadPassword',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.导入'),
                CODE: 'import',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.导出'),
                CODE: 'export',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.保存'),
                CODE: 'save',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.新增同级菜单'),
                CODE: 'addMenu',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.新增子级菜单'),
                CODE: 'addChildMenu',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.复制'),
                CODE: 'copy',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.跳转'),
                CODE: 'jumpto',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.接口禁用'),
                CODE: 'portForbidden',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.手动触发'),
                CODE: 'handTrigger',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.清除锁定'),
                CODE: 'clearLock',
              },
              {
                LABEL: translateTitle('Dams.DamsSystemManagement.同步AD域'),
                CODE: 'synchronization',
              },
            ],
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'input',
            name: 'SHOW_REMARK',
            label: translateTitle('Dams.DamsSystemManagement.按钮显示备注'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'BUTTON_ICON',
            label: translateTitle('Dams.DamsSystemManagement.按钮icon'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    deleteMethod: 'dams.menuButton.del',
    updateMethod: 'dams.menuButton.edit',
    addMethod: 'dams.menuButton.add',
  },
}
export default MenuButton
